package com.tianma315.admin.qa.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.tianma315.admin.common.base.CoreServiceImpl;
import com.tianma315.admin.qa.domain.GlassBottleLineDO;
import org.springframework.stereotype.Service;

import com.tianma315.admin.qa.dao.PlasticBottleLineDao;
import com.tianma315.admin.qa.domain.PlasticBottleLineDO;
import com.tianma315.admin.qa.service.PlasticBottleLineService;

/**
 * 
 * <pre>
 * 塑料瓶线
 * </pre>
 * <small> 2019-07-10 09:48:55 | wen</small>
 */
@Service
public class PlasticBottleLineServiceImpl extends CoreServiceImpl<PlasticBottleLineDao, PlasticBottleLineDO> implements PlasticBottleLineService {

    @Override
    public PlasticBottleLineDO getPlasticBottleLineByQaPatrol(Integer qaPatrol) {
        EntityWrapper<PlasticBottleLineDO> wrapper = new EntityWrapper();
        wrapper.eq("qa_patrol_id",qaPatrol);
        wrapper.eq("state",0);
        PlasticBottleLineDO plasticBottleLineDO = selectOne(wrapper);
        return plasticBottleLineDO;
    }
}
